package io.github.maojian.math;

import org.junit.Test;

/**
 * @Auther: jian.mao
 * @Date: 2022/6/8 09:17
 * @Description: https://leetcode.cn/problems/valid-boomerang/
 */
public class Q1037 {
    public boolean isBoomerang(int[][] points) {
        return (points[1][1] - points[0][1]) * (points[2][0] - points[1][0]) != (points[2][1] - points[1][1]) * (points[1][0] - points[0][0]);
    }

    @Test
    public void test01(){
        int[][] points = new int[][]{{1,1},{2,3},{3,2}};
        System.out.println(isBoomerang(points));
    }
}
